

var obj = {
    list: `
        $('.row').each(function(index, item) {
            let vodName = $(item).find('li').eq(0).text()
            let vodAddr = $(item).find('li').eq(1).text()
            let vodType = $(item).find('li').eq(2).text()
            let vodDate = $(item).find('li').eq(3).text()
            let data = {
              _id: uuid.generate(),
              vodUrl: $(item).attr('href'),
              vodName,
              vodType,
              vodDate
            }
            listData.list.push(data)
        })
    `,
    detail: `
        let poster = $('.detail').children('img').attr('src')
        let name = $('.detail').children('.content').children('.detail-title').children('h1').text()
        let douban = $('.detail').children('.content').children('.detail-title').children('h6').text()
        let director = $('.detail').children('.content').children('p').eq(0).text()
        let starring = $('.detail').children('.content').children('p').eq(1).text()
        let categories = $('.detail').children('.content').children('p').eq(2).text()
        let area = $('.detail').children('.content').children('p').eq(3).text()
        let lang = $('.detail').children('.content').children('p').eq(4).text()
        let remark = $('.detail').children('.content').children('p').eq(5).text()
        let date = $('.detail').children('.content').children('p').eq(6).text()
        let timeLength = $('.detail').children('.content').children('p').eq(7).text()
        let alias = $('.detail').children('.content').children('p').eq(8).text()
        let introduction = $('.introduction').children('p').eq(1).text()
        let links = []
        $('.other').eq(2).children('.download').children('.link').each(function(index, item) {
            links.push($(item).children('.limit').attr('value'))
        })
        data = {
            _id: res.options.id || '',
            poster,
            name,
            douban,
            director,
            starring,
            categories,
            area,
            lang,
            remark,
            date,
            timeLength,
            alias,
            introduction,
            links
        }
    `
   }
  
  module.exports = obj